
CC = gcc
MPICC = mpicc
CFLAGS = -Wall
SEQFLAGS = -lrt
MPIFLAGS = -lrt
OMPFLAGS = -fopenmp
HDIR = inc
ODIR = obj
SDIR = src


all: gerador

gerador: $(SDIR)/main.c tree.o
	$(MPICC) $(CFLAGS) $(OMPFLAGS) -I$(HDIR) -o $@ $^

tree.o: $(SDIR)/tree.c
	$(CC) $(CFLAGS) -I$(HDIR) -o $@ -c $<
